
#include "tp_typedef.h"
#include "tp_globals.h"

typedef struct _TpGlobals
{
	TpDisplay* display;
	TpWndManager* wnd_manager;
    TpSource* primary_source;
}TpGlobals;

TpGlobals g_globals = {0};

void tp_set_display(TpDisplay* display)
{
	g_globals.display = display;

	return;
}

TpDisplay* tp_default_display(void)
{
	return g_globals.display;
}

void tp_set_wnd_manager(TpWndManager* wnd_manager)
{
	g_globals.wnd_manager = wnd_manager;

	return;
}

TpWndManager* tp_default_wnd_manager(void)
{
	return g_globals.wnd_manager;
}
